package com.iims.flowable.flow.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author fanpei
 * @date 2020年3月24日
 */
@ApiModel("更新任务对象")
@Data
public class TaskUpdateRequest {
    @ApiModelProperty(value = "任务Id", required = true)
    @NotBlank(message = "任务Id不能为空")
    private String taskId;

    @ApiModelProperty(value = "任务名称", required = true)
    @NotBlank(message = "任务名称不能为空")
    private String name;

    @ApiModelProperty(value = "处理人(user_code)", required = true)
    @NotBlank(message = "任务处理人不能为空")
    private String assignee;

    @ApiModelProperty(value = "任务所有者(user_code)")
    private String owner;

    @ApiModelProperty(value = "任务到期时间")
    private Date dueDate;

    @ApiModelProperty(value = "任务分类", required = true)
    private String category;

    @ApiModelProperty(value = "任务描述")
    private String description;

    @ApiModelProperty(value = "任务优先级(>=0)")
    private int priority;
}
